
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        广告图
        <small>Control panel</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> 控制台</a></li>
        <li class="active">广告图</li>
      </ol>
    </section>



    <!-- Main content -->
    <section class="content">

      <div class="row">
        <div class="col-md-12">
          <!-- Horizontal Form -->
          <div class="box box-info">
            <div class="box-header with-border">
              <h3 class="box-title">修改广告图</h3>
              <a href="{:url('admin/banner/index')}" class="pull-right btn btn-primary"><i class="glyphicon glyphicon-share-alt"></i>&nbsp;返回</a>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form action="{:url('admin/banner/edit',['id'=>$banner['b_id']])}" method="post"  enctype="multipart/form-data" class="form-horizontal">
              <div class="box-body">
                <div class="row text-center" style="margin-bottom: 20px;">
                  <div class="col-lg-12" id="preview">
                    <img id="imghead" border="0" src="__UPLOAD__<?php echo $banner['b_img']; ?>" style="width: 500px;height: 200px;" onclick="$('#previewImg').click();">
                    <label for="" style="margin-right: 20px;">上传图片</label>
                  </div>
                  <input type="file" name="image" onchange="previewImage(this,500,350)" style="display: none;" id="previewImg">
                </div>


                <div class="row text-center" style="margin-top: 20px;">
                  <div class="col-lg-12">

                    <div class="input-group">
                      <span class="input-group-addon" id="basic-addon2">链接</span>
                      <input type="text" name="b_link" class="form-control"  aria-describedby="basic-addon2">
                      <a class="b_link_mes"  style="color: red"></a>
                    </div>
                  </div>
                </div>

              </div>
              <!-- /.box-body -->
              <div class="box-footer">
                <div class="col-sm-2">

                </div>

                <div class="col-sm-9">
                  <button type="submit" class="btn btn-info pull-right">提交</button>
                </div>

              </div>
              <!-- /.box-footer -->
            </form>
          </div>
          <!-- /.box -->
        </div>
        <!--/.col (right) -->
      </div>

    </section>
    <!-- /.content -->
  </div>
